import { get, post } from '../http';

/**
 *  基础资料
 *    testStandard 测试标准
 *    testType 测试类型
 *    fabircTest 面料测试项目
 *    testMethod 测试方法
 *    fabircTestRequire 面料测试要求 
 *    fabircTestClass 面料测试大类
 *    testStandardProject 测试标准项目定义
 *    customTestProject 客户测试项目资料 
 *    pushCategory 推送类别
 */

export function testStandard() {
    return {
        getTestStandardList: (params: any) => {
            return post({
                url: '/pdm/VerifyStandard/getList',
                data: params
            })
        },
        getPageTestStandardList: (params: any) => {
            return post({
                url: '/pdm/VerifyStandard/getPage',
                data: params
            })
        },
        addTestStandard: (params: any) => {
            return post({
                url: '/pdm/VerifyStandard/insert',
                data: params
            })
        },
        editTestStandard: (params: any) => {
            return post({
                url: '/pdm/VerifyStandard/update',
                data: params
            })
        },
        batchDelTestStandard: (params: any) => {
            return post({
                url: '/pdm/VerifyStandard/delete',
                data: params
            })
        },
        getSelectTestStandardList: (params: any) => {
            return post({
                url: '/pdm/VerifyStandard/getFieldValue',
                data: params
            })
        },

    }
}

export function testType() {
    return {
        getTestTypeList: (params: any) => {
            return post({
                url: '/pdm/VerifyType/getList',
                data: params
            })
        },
        getPageTestTypeList: (params: any) => {
            return post({
                url: '/pdm/VerifyType/getPage',
                data: params
            })
        },
        addTestType: (params: any) => {
            return post({
                url: '/pdm/VerifyType/insert',
                data: params
            })
        },
        editTestType: (params: any) => {
            return post({
                url: '/pdm/VerifyType/update',
                data: params
            })
        },
        batchDelTestType: (params: any) => {
            return post({
                url: '/pdm/VerifyType/delete',
                data: params
            })
        },
        getSelectTestTypeList: (params: any) => {
            return post({
                url: '/pdm/VerifyType/getFieldValue',
                data: params
            })
        },

    }
}

export function fabircTest() {
    return {
        getfabircTestList: (params: any) => {
            return post({
                url: 'pdm/FabricVerifyProject/getFieldValue1',
                data: params
            })
        },
        getPagefabircTestList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyProject/getPage',
                data: params
            })
        },
        addfabircTest: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyProject/insert',
                data: params
            })
        },
        editfabircTest: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyProject/update',
                data: params
            })
        },
        batchDelfabircTest: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyProject/delete',
                data: params
            })
        },
        getSelectfabircTestList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyProject/getFieldValue',
                data: params
            })
        },

    }
}

export function testMethod() {
    return {
        getTestMethodList: (params: any) => {
            return post({
                url: '/pdm/VerifyMethod/getList',
                data: params
            })
        },
        getPageTestMethodList: (params: any) => {
            return post({
                url: '/pdm/VerifyMethod/getPage',
                data: params
            })
        },
        addTestMethod: (params: any) => {
            return post({
                url: '/pdm/VerifyMethod/insert',
                data: params
            })
        },
        editTestMethod: (params: any) => {
            return post({
                url: '/pdm/VerifyMethod/update',
                data: params
            })
        },
        batchDelTestMethod: (params: any) => {
            return post({
                url: '/pdm/VerifyMethod/delete',
                data: params
            })
        },
        getSelectTestMethodList: (params: any) => {
            return post({
                url: '/pdm/VerifyMethod/getFieldValue',
                data: params
            })
        },

    }
}

export function fabircTestRequire() {
    return {
        getFabircTestRequireList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyRequire/getList',
                data: params
            })
        },
        getPageFabircTestRequireList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyRequire/getPage',
                data: params
            })
        },
        addFabircTestRequire: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyRequire/insert',
                data: params
            })
        },
        editFabircTestRequire: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyRequire/update',
                data: params
            })
        },
        batchDelFabircTestRequire: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyRequire/delete',
                data: params
            })
        },
        getSelectFabircTestRequireList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyRequire/getFieldValue',
                data: params
            })
        },

    }
}

export function fabircTestClass() {
    return {
        getFabircTestClassList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyClass/getList',
                data: params
            })
        },
        getPageFabircTestClassList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyClass/getPage',
                data: params
            })
        },
        addFabircTestClass: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyClass/insert',
                data: params
            })
        },
        editFabircTestClass: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyClass/update',
                data: params
            })
        },
        batchDelFabircTestClass: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyClass/delete',
                data: params
            })
        },
        getSelectFabircTestClassList: (params: any) => {
            return post({
                url: '/pdm/FabricVerifyClass/getFieldValue',
                data: params
            })
        },

    }
}

export function testStandardProject() {
    return {
        getTestStandardProjectList: (params: any) => {
            return post({
                url: '/pdm/VerifyStandardProject/getFieldValue1',
                data: params
            })
        },
        getPageTestStandardProjectList: (params: any) => {
            return post({
                url: '/pdm/VerifyStandardProject/getPage',
                data: params
            })
        },
        // 新增 编辑  操作
        operTestStandardProject: (params: any) => {
            return post({
                url: 'pdm/VerifyStandardProject/insertList',
                data: params
            })
        },
        operTestStandardProjectUpdate: (params: any) => {
            return post({
                url: 'pdm/VerifyStandardProject/updateList',
                data: params
            })
        },
        batchDelTestStandardProject: (params: any) => {
            return post({
                url: '/pdm/VerifyStandardProject/delete',
                data: params
            })
        },
        getSelectTestStandardProjectList: (params: any) => {
            return post({
                url: '/pdm/CustomVerifyProject/getList',
                data: params
            })
        },
        getByIdNextPageProjectList: (params: any) => {
            return post({
                // url: "/pdm/CustomVerifyProjectSon/getList",
                url: "/pdm/VerifyStandardProjectSon/getList",
                data: params
            })
        }
    }
}

export function customTestProject() {
    return {
        getCustomTestProjectList: (params: any) => {
            return post({
                url: '/pdm/CustomVerifyProject/getList',
                data: params
            })
        },
        getPageCustomTestProjectList: (params: any) => {
            return post({
                url: '/pdm/CustomVerifyProject/getPage',
                data: params
            })
        },
        // 新增 编辑  操作  
        operCustomTestProject: (params: any) => {
            return post({
                url: '/pdm/CustomVerifyProject/insert',
                data: params
            })
        },
        batchDelCustomTestProject: (params: any) => {
            return post({
                url: '/pdm/CustomVerifyProject/delete',
                data: params
            })
        },
        getSelectCustomTestProjectList: (params: any) => {
            return post({
                url: '/pdm/CustomVerifyProject/getFieldValue',
                data: params
            })
        },
        getByIdNextPageProjectList: (params: any) => {
            return post({
                url: "/pdm/CustomVerifyProject/getListId",
                data: params
            })
        }
    }
}

export function pushCategory() {
    return {
        getPushCategoryList: (params: any) => {
            return post({
                url: '/pdm/PushType/getList',
                data: params
            })
        },
        getPagePushCategoryList: (params: any) => {
            return post({
                url: '/pdm/PushType/getPage',
                data: params
            })
        },
        addPushCategory: (params: any) => {
            return post({
                url: '/pdm/PushType/insert',
                data: params
            })
        },
        editPushCategory: (params: any) => {
            return post({
                url: '/pdm/PushType/update',
                data: params
            })
        },
        batchDelPushCategory: (params: any) => {
            return post({
                url: '/pdm/PushType/delete',
                data: params
            })
        },
        getSelectPushCategoryList: (params: any) => {
            return post({
                url: '/pdm/PushType/getFieldValue',
                data: params
            })
        },
    }
}